﻿using System;
using CxRomos.Web.Account.Interface;
using CxRomos.Web.Account.Presenter;

namespace CxRomos.Web.Account {
    public partial class RecoverPassword : System.Web.UI.Page, IRecoverPassword {
        private RecoverPasswordPresenter _presenter;
        protected void Page_Load(object sender, EventArgs e) {
            _presenter = new RecoverPasswordPresenter();
            _presenter.Init(this);
        }

        protected void btnRecoverPassword_Click(object sender, EventArgs e) {
            _presenter.RecoverPassword(txtEmail.Text);
        }

        public void ShowMessage(string message) {
            lblMessage.Text = message;
        }

        public void ShowRecoverPasswordPanel(bool value) {
            pnlRecoverPassword.Visible = value;
        }
    }
}
